/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-09-20
 * Time: 19:06
 */
public class Test {
    public static void main(String[] args) {
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        TestHeap testHeap = new TestHeap();

        //把array的值赋值给testHeap
        testHeap.intelem(array);
        testHeap.createHeap();
        /*for (int i = 0; i < array.length; i++) {
            testHeap.push(array[i]);
        }*/
        testHeap.offer(80);
        //System.out.println(testHeap.poll());
        testHeap.heapSort();
    }
}
